﻿
$(async function () {
    var form;
    let formData;
    let amisJosn;

    Promise.all([$.get(`/api/examDetail/getTestAmis`)]).then(function (res) {
        amisJosn = JSON.parse(res[0].data.amisJson);
        

        var options = {
            $element: $("#main"),
            view: amisJosn,
            formData: {},
        }
        var options2 = {
            $element: $("#main2"),
            view: amisJosn,
            formData: {},
        }
        form = $("#main").amisForm(options);
        form2 = $("#main2").amisForm(options2)
        //$.invokeAction(
        //    '测试工作流',
        //    `/api/examDetail/testWorkFlow`,
        //    null,
        //    { actionUrl: '/api/workflow/invoke' }
        //).then(result => {
        //    if (result.success) {
        //        refreshDataGrid(data);
        //    }
        //});
    }); 
})
